package org.way.iam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName("sys_dept")
public class SysDeptEntity implements Serializable {

    private static final long serialVersionUID = -77177076272632721L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 父级id
     */
    private String parentId;
    /**
     * 部门编码
     */
    private String deptCode;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 排序
     */
    private Integer orderNo;
    /**
     * 负责人
     */
    private String leader;
    /**
     * 部门级别
     */
    private Integer level;
}

